/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.uitls;

import ac.lib.tools.files;
import java.util.Map;

/**
 *
 * @author empcl_000
 */
public class xml {

    files f = new files();
    
    
       

    
    
    

    public Map<String, String> getcomboboxAdds(String type) {
        String fileurl = f.getFileURL("/xmls/comboboxAdds.xml");
        ac.lib.tools.xml x = new ac.lib.tools.xml(fileurl);
        return x.getXmlAttars(type);
    }

    public Map<String, String> getTreeAdds(String type) {
        String fileurl = f.getFileURL("/xmls/treeAdds.xml");
        ac.lib.tools.xml x = new ac.lib.tools.xml(fileurl);
        return x.getXmlAttars(type);
    }

    public String[][] getLanguages() {

        String fileurl = f.getFileURL("/xmls/languages.xml");
        ac.lib.tools.xml x = new ac.lib.tools.xml(fileurl);

        String[][] da = {
            x.getXmlNodesNames(), x.getXmlNodesValue()
        };
        return da;

    }
}
